#ifndef CALIBRATE_H
#define CALIBRATE_H
#include "ui_calibrate.h"
#include "myThread.h"
#include "myThread1.h"
#include <QTimer>


struct sysDescrib{
    int cores;
    float recentCoreUsage[8];

    float savIdle;
    float savWorkn;
    float savStressd;

    float Idle;
    float Workn;
    float Stressd;

};

class Calibrate : public QDialog, private Ui::Calibrate
{
    Q_OBJECT
public:
    Calibrate(QWidget *parent = 0);
    Ui::Calibrate *calui;

    sysDescrib mySys;



private:

    MyThread1 *thread1;
    MyThread *thread2;
    MyThread *thread3;
    MyThread *thread4;
    int progress;

     QTimer timer;

private slots:

    void updateProgress();

    void on_WorkingButton_clicked();

    void on_StressedButton_clicked();

    int getCores();

    void timedOut();

};

#endif // CALIBRATE_H
